package com.edu.base.ums.memberShareRecord.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员邀请码分享记录对象 cls_member_share_record
 * 
 * @author zw
 * @date 2022-06-27
 */
public class ClsMemberShareRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 会员id */
    @Excel(name = "会员id")
    private String memberId;

    /** 会员邀请码 */
    @Excel(name = "会员邀请码")
    private String inviteCode;

    /** 分享时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "分享时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date shareTime;

    /** 分享类型 1 微信 2 朋友圈 */
    private String shareType;

    /** 邀请注册的会员id */
    @Excel(name = "邀请注册的会员id")
    private String newMemberId;

    /** 邀请注册的会员手机号 */
    @Excel(name = "邀请注册的会员手机号")
    private String newMemberPhone;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /** 分享注册奖励的积分 */
    @Excel(name = "分享注册奖励的积分")
    private BigDecimal shareRewardScore;

    /** 好友消费奖励的积分 */
    @Excel(name = "好友消费奖励的积分")
    private BigDecimal shopRewardScore;

    /** 消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "消费时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date shopTime;

    /** 奖励类型 1 注册奖励 2 消费奖励 */
    @Excel(name = "奖励类型 1 注册奖励 2 消费奖励")
    private String rewardType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setInviteCode(String inviteCode) 
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode() 
    {
        return inviteCode;
    }
    public void setShareTime(Date shareTime) 
    {
        this.shareTime = shareTime;
    }

    public Date getShareTime() 
    {
        return shareTime;
    }
    public void setNewMemberId(String newMemberId) 
    {
        this.newMemberId = newMemberId;
    }

    public String getNewMemberId() 
    {
        return newMemberId;
    }
    public void setNewMemberPhone(String newMemberPhone) 
    {
        this.newMemberPhone = newMemberPhone;
    }

    public String getNewMemberPhone() 
    {
        return newMemberPhone;
    }
    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }
    public void setShareRewardScore(BigDecimal shareRewardScore) 
    {
        this.shareRewardScore = shareRewardScore;
    }

    public BigDecimal getShareRewardScore() 
    {
        return shareRewardScore;
    }
    public void setShopRewardScore(BigDecimal shopRewardScore) 
    {
        this.shopRewardScore = shopRewardScore;
    }

    public BigDecimal getShopRewardScore() 
    {
        return shopRewardScore;
    }
    public void setShopTime(Date shopTime) 
    {
        this.shopTime = shopTime;
    }

    public Date getShopTime() 
    {
        return shopTime;
    }
    public void setRewardType(String rewardType) 
    {
        this.rewardType = rewardType;
    }

    public String getRewardType() 
    {
        return rewardType;
    }

    public String getShareType() {
        return shareType;
    }

    public void setShareType(String shareType) {
        this.shareType = shareType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("inviteCode", getInviteCode())
            .append("shareTime", getShareTime())
            .append("newMemberId", getNewMemberId())
            .append("newMemberPhone", getNewMemberPhone())
            .append("registerTime", getRegisterTime())
            .append("shareRewardScore", getShareRewardScore())
            .append("shopRewardScore", getShopRewardScore())
            .append("shopTime", getShopTime())
            .append("rewardType", getRewardType())
            .toString();
    }
}
